gdk/wayland: Add GdkDisplay call to query available globals
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Feb 2018 13:28:44 +0000 (14:28 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 14 Feb 2018 13:58:06 +0000 (14:58 +0100)
commit3146f29d3ae3abae33822bcdf3eaf44b5b19cd7e
treeba5595a32153588cefb3390b9d8256f2b642f051
parentc6901a8b950f156aaddf2ee8f8fb39440b7b9cfd
gdk/wayland: Add GdkDisplay call to query available globals

The internal known_globals hashtable is used to carry accounting for
interfaces that depend on others (as ordering is not guaranteed), extend
its usage so it also keeps track of unimplemented interfaces (here at
least).

The API call will then use this to allow querying the globals offered by
the compositor, it will be useful to determine whether we can use
text-input protocols or should fallback to other IMs.
docs/reference/gdk/gdk3-sections.txt
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkwaylanddisplay.h